
# Demo.ps1

# Setting
$ScriptFile = $MyInvocation.MyCommand.Name
$ScriptLocation  = Split-Path $MyInvocation.MyCommand.Path -Parent

#Setting Vars
$OSDComputername = $TSEnv:OSDCOMPUTERNAME
$Make = $TSEnv:Make
$Model = $TSEnv:Model

#Performing Action
Write-Progress -Activity "Checking Hardware..." -Status "Running Inventory, kind of" -PercentComplete 10 -Id 1
Start-Sleep -Seconds 3

Write-Progress -Activity "Checking Hardware..." -Status "Running $ScriptFile" -PercentComplete 10 -Id 1
Start-Sleep -Seconds 3

Write-Progress -Activity "Checking Hardware..." -Status "Running from $ScriptLocation" -PercentComplete 12 -Id 1
Start-Sleep -Seconds 3

Write-Progress -Activity "Checking Hardware..." -Status "Make is $Make" -PercentComplete 32 -Id 1
Start-Sleep -Seconds 3

Write-Progress -Activity "Checking Hardware..." -Status "Model is $MODEL" -PercentComplete 85 -Id 1
Start-Sleep -Seconds 3
  
Write-Progress -Activity "Checking Hardware..." -Status "Waiting when we are at 99% just because we can..." -PercentComplete 99 -Id 1
Start-Sleep -Seconds 3

Write-Progress -Activity "Checking Hardware..." -Status "Done" -PercentComplete 100 -Id 1
Start-Sleep -Seconds 3